package com.huanong.controller;
/*
 *@Author:anran
 *@Date:2020/12/9
 *@Version 1.0
 */

import com.huanong.common.grace.result.GraceJSONResult;
import com.huanong.pojo.Admin;
import com.huanong.pojo.Person;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Api(value = "管理员相关",tags = {"管理员相关"})
@RequestMapping("/admin")
@CrossOrigin(origins = "*")
public interface AdminControllerApi {

    @ApiOperation(value = "管理员登录",notes = "管理员登录",httpMethod = "POST")
    @PostMapping("/adminLogin")
    GraceJSONResult adminLogin(@RequestBody Admin admin, HttpServletRequest request, HttpServletResponse response);

    @ApiOperation(value = "管理员注册接口",notes = "管理员注册接口",httpMethod = "POST")
    @PostMapping("/adminRegister")
    GraceJSONResult adminRegister(@RequestBody Admin admin);

    @ApiOperation(value = "管理员验证账号接口",notes = "管理员验证账号接口",httpMethod = "GET")
    @GetMapping("/adminCheckAccount")
    GraceJSONResult adminCheckAccount(@RequestParam String adAccount);

}


